page {
    // background-color: #f7f7f7;
}

.ball {
    width: 100rpx;
    height: 100rpx;
    margin: 100rpx;
    border-radius: 50%;
    background-color: pink;
    animation: jump 2s cubic-bezier(0.36, -0.01, 0.93, 0.21) infinite
}

// 定义名称为move的动画
@keyframes jump {
    0% {
        transform: translateY(0rpx);
    }

    95% {
        transform: translateY(100rpx);
        clip-path: ellipse(50% 50% at 50% 45%)
    }

    100% {
        transform: translateY(110rpx);
        clip-path: ellipse(50% 45% at 50% 48%)
    }
}


.loading {
    width: 400rpx;
    height: 400rpx;
    margin: 200rpx;
    animation: round 2s steps(6) infinite;
}

@keyframes round {
    50% {
        transform: rotate(180deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


// 雨滴效果
.content {
    position: relative
}

@for $i from 1 through 30 {
    .rain:nth-child(#{$i}) {
        position: absolute;
        // top: random(200)+rpx;
        left: random(735-120)+rpx;
        animation: drop 2.164156604s cubic-bezier(0.51, 0.33, 0.23, 0.54) infinite;
        animation-delay: random(10)+s;
        opacity: 0;

        // 雨滴样式
        // width: 10rpx;
        // height: 60rpx;
        // background-color: pink;
        // clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
        // border-radius: 40rpx;

        // 红包样式
        width: 120rpx;
        height: 120rpx;
    }
}

@keyframes drop {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(100vh);
    }
}